﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GetRawWeb
{
    public class LinkWeb
    {
        public TypePage Type { get; set; }
        public Uri Uri { get; set; }
    }

    public enum TypePage
    {
        Img, 
        A,
        Script,
        Link,
        Style
    }

    public class Contant
    {
        public static readonly string[] StartWithUrl =
        {
            "mailto:",
            "market:",
            "anton:",
            "javascript:"
        };

        public static bool StartWith(string url)
        {
            foreach (var s in StartWithUrl)
            {
                if (url.StartsWith(s))
                    return true;
            }
            return false;
        }
    }
}
